<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">   


    <p:dock id="dock" >
        <p:menuitem value="Login" onclick="loginDialog.show()" icon="/images/dock/login.png" />    
        <p:menuitem value="Logout" actionListener="#{loginBean.logout}" icon="/images/dock/logout.png"  update=":menu,:formPost" rendered="#{loginBean.render}"/> 
        <p:menuitem value="Editar" onclick="editDialog.show()"  icon="/images/dock/alterar.png"  action="#{cadastroBean.cadastro()}" rendered="#{loginBean.render}" />
        <p:menuitem value="Filtros" icon="/images/dock/filtro.png"  onclick="filtroDialog.show()" url="#" />
        <p:menuitem value="Usuários" icon="/images/dock/usuario.png"  onclick="userDialog.show()" url="#" rendered="#{loginBean.admin}"/>
       

    </p:dock>


</html>
